package com.wander.rep.patient;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;

public class Issue implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 6784109621066956762L;
	
	private int issueID;
	private Boolean isSolved;
	private FeedbackType feedbackType;
	private Date date;
	
	private String titleString, errorString;
	private ArrayList<Feedback> feedbackList;
	
	public Issue(int id, Date date, String titleString, String errorString) {
		super();
		
		this.issueID = id;
		this.date = date;
		this.titleString = titleString;
		this.errorString = errorString;
		
		feedbackList = new ArrayList<Feedback>();
	}

	public Boolean getIsSolved() {
		return isSolved;
	}

	public void setIsSolved(Boolean isSolved) {
		this.isSolved = isSolved;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getTitleString() {
		return titleString;
	}

	public void setTitleString(String titleString) {
		this.titleString = titleString;
	}

	public String getErrorString() {
		return errorString;
	}

	public void setErrorString(String errorString) {
		this.errorString = errorString;
	}

	public ArrayList<Feedback> getFeedbackList() {
		return feedbackList;
	}

	public void setFeedbackList(ArrayList<Feedback> feedbackList) {
		this.feedbackList = feedbackList;
	}

	public void addFeedback(Feedback feedback)
	{
		feedbackList.add(feedback);
	}
	
	public FeedbackType getType() {
		return feedbackType;
	}

	public void setType(FeedbackType type) {
		this.feedbackType = type;
	}

	public int getIssueID() {
		return issueID;
	}

	public void setIssueID(int issueID) {
		this.issueID = issueID;
	}

	private String episode;
	public String getEpisode() {
		return episode;
	}

	public void setEpisode(String episode) {
		this.episode = episode;
	}

	public int getTemperature() {
		return temperature;
	}

	public void setTemperature(int temperature) {
		this.temperature = temperature;
	}

	public int getActiviylevel() {
		return activiylevel;
	}

	public void setActiviylevel(int activiylevel) {
		this.activiylevel = activiylevel;
	}

	public int getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(int timestamp) {
		this.timestamp = timestamp;
	}

	private int temperature, activiylevel, timestamp;

	public enum FeedbackType 
	{
		ACCEPTED, REJECTED
	}
}
